package top.sxlai.service;
import com.baomidou.mybatisplus.extension.service.IService;
import top.sxlai.entity.DTO.LoginRequest;
import top.sxlai.entity.DTO.OpUserInfoDto;
import top.sxlai.entity.OpUser;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

/**
 * (OpUser)表服务接口
 *
 * @author makejava
 * @since 2024-04-06 16:01:22
 */
public interface OpUserService extends IService<OpUser> {

    ResponseEntity<Map<String, String>> login(LoginRequest loginRequest);

    ResponseEntity<Map<String, String>> uploadAvatarFile(MultipartFile avatarFile, String userId);

    ResponseEntity<Map<String, String>> changeUserInfo(OpUserInfoDto opUserInfoDto);

    ResponseEntity<Map<String, String>> changePassword(OpUserInfoDto opUserInfoDto);
}


